package com.ttbj.driver.dao;

import com.ttbj.driver.bean.po.Driver;
import com.ttbj.driver.bean.po.DriverExample;
import com.ttbj.product.bean.dto.DriverDto;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DriverMapper {
    int countByExample(DriverExample example);

    int deleteByExample(DriverExample example);

    int deleteByPrimaryKey(Long driverId);

    int insert(Driver record);

    int insertSelective(Driver record);

    List<Driver> selectByExample(DriverExample example);

    Driver selectByPrimaryKey(Long driverId);

    int updateByExampleSelective(@Param("record") Driver record, @Param("example") DriverExample example);

    int updateByExample(@Param("record") Driver record, @Param("example") DriverExample example);

    int updateByPrimaryKeySelective(Driver record);

    int updateByPrimaryKey(Driver record);

	DriverDto getDriver(@Param("driver") Driver record, @Param("sen") int sen); //根据不同参数查询司机信息
	
	void updateUser(Driver driver);

	void logout(DriverDto driverDto);//登出接口


}